package com.ruoyi.laiwu.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 告警文件业务对象 lw_alarm_file
 *
 * @author ruoyi
 * @date 2024-03-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LwAlarmFileBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 子ID
     */
    @NotNull(message = "子ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long subId;



    /**
     * 文件编号
     */
    @NotNull(message = "文件编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fileNo;

    /**
     * 文件类型
     */
    @NotBlank(message = "文件类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileType;

    /**
     * 文件URL
     */
    @NotBlank(message = "文件URL不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileURL;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 内部文件URL
     */
    @NotBlank(message = "内部文件URL不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileInnerURL;


}
